import Vue from 'vue'
import Router from 'vue-router'

import RBAC_Resource from './views/rbac/Resource'
import RBAC_Role from './views/rbac/Role'
import RBAC_Admin from './views/rbac/Admin'

Vue.use(Router)

// 暴露出Router对象
export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/rbac/resource',
      name: 'rbac/resource',
      component: RBAC_Resource
    },
    {
      path: '/rbac/role',
      name: 'rbac/role',
      component: RBAC_Role
    },
    {
      path: '/rbac/admin',
      name: 'rbac/admin',
      component: RBAC_Admin
    }
  ]
})
